package cn.itsource.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author : 张金铭
 * @description :
 * @create :2022-11-13 16:17:00
 */
@Data
@TableName("t_shop")
public class Shop implements Serializable {

    private Long id;//id
    private String name;//门店名称
    private String tel;//联系电话
    private LocalDateTime registerTime = LocalDateTime.now();//注册时间
    private Integer state;//1正常；2锁定；3注销
    private String address;//店铺地址
    private String logo;//店铺logo
    private Long adminId;//关联的管理员ID

    @TableField(exist = false)
    private Employee admin;//管理员信息


    @TableField(exist = false)
    private String adminName;//管理员名字
}
